﻿/* File Created: августа 28, 2012 */
var webAPIUrl = "http://localhost/CRMWebServices";

///////////////////////////
// Authorization request //
///////////////////////////
function getAuthorization(authData, onGetAuthorizationSuccess, onGetAuthorizationError) {
    $.ajax({
        type: "POST",
        url: webAPIUrl + "/AuthWebService.asmx/Auth",
        data: JSON.stringify(authData),
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: onGetAuthorizationSuccess,
        error: onGetAuthorizationError
    });
}

